package cn.itcast.service.impl;

import junit.test.ItcastResource;

import cn.itcast.dao.PersonDao;
import cn.itcast.service.PersonService;

public class PersonServiceBean implements PersonService {
	@ItcastResource
	private PersonDao personDao;
	private String name;
	
	public PersonServiceBean(){}

	public PersonServiceBean(PersonDao personDao, String name) {
		this.personDao = personDao;
		this.name = name;
	}

	public void save(){
		//System.out.println(name);
		personDao.add();
	}
}
